home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / alib12 / al_sys.h next >
Text File  |  1992-03-09  |  3KB  |  94 lines

  1. /***************************************************************/
  2. /*                                                             */
  3. /*    Copyright 1991 by Wayne E. McDaniel                      */
  4. /*    All Rights Reserved                                      */
  5. /*    AutoLibrary is a Trademark of Avid Software              */
  6. /*                                                             */
  7. /***************************************************************/
  8.  
  9. #define COMLIST_SIZE 30
  10.  
  11. /* The wait for string record. */
  12. struct wrec {
  13.     struct  wrec    *next;
  14.     int     rv;
  15.     int     matched;
  16.     int     len;
  17.     char    *waitptr;
  18. };
  19.  
  20. /* The send string record. */
  21. struct srec {
  22.     struct  srec    *next;
  23.     int     before;
  24.     int     between;
  25.     int     len;
  26.     char    *sendptr;
  27. };
  28.  
  29. /* The auto record. */
  30. struct autorec {
  31.     struct  wrec    *whead;
  32.     struct  srec    *shead;
  33.     struct  wrec    *wtail;
  34.     struct  srec    *stail;
  35.     int     hw_port;
  36.     char    *hw_port_name;
  37.     int     d_exit_now;
  38.     int     d_print_now;
  39.     int     d_log_now;
  40.     FILE    *log_file;
  41.     int     num_log;    /* This is the number of messages logged with
  42.                AvidInfoLog. */
  43.     int     d_before;   /* Default */
  44.     int     d_between;  /* Default */
  45.     char    *hbuf;      /* Pointer to the hold area. */
  46.     int     hsize;      /* The size of the hold area. */
  47.     int     hpos;       /* The position to put the next received character. */
  48.     int     hnum1;      /* The number of characters hold thinks there is in the hold area. */
  49.     int     hnum2;      /* The number of characters auto thinks there is in the hold area. */
  50.     int     max_cap;    /* The maximum number of characters to capture. */
  51. };
  52.  
  53. #ifndef GLOBAL
  54. extern struct autorec *comlist[];
  55. #endif
  56.  
  57. static char *o_before =       "_b";
  58. static char *o_between =      "_B";
  59. static char *o_poscap =       "+c";
  60. static char *o_negcap =       "-c";
  61. static char *o_rep_drn =      ".d";
  62. static char *o_end_drn =      ".D";
  63. static char *o_error_message ="*E";
  64. static char *o_exit_yes =     "+E";
  65. static char *o_exit_no =      "-E";
  66. static char *o_holdsize =     "+h";
  67. static char *o_location =     "*L";
  68. static char *o_log_yes =      "+L";
  69. static char *o_log_no =       "-L";
  70. static char *o_nnulls =       ".N";
  71. static char *o_print_yes =    "+p";
  72. static char *o_print_no =     "-p";
  73. static char *o_send =         ".s";
  74. static char *o_registered =   "+R";
  75. static char *o_time_stamp =   "*T";
  76. static char *o_wait =         "0w"; /* Digits 1 thru 9 are valid. */
  77.  
  78. /* Switches */
  79. static char *o_stop_bits_1 = ".1";
  80. static char *o_stop_bits_2 = ".2";
  81. static char *o_word_len_7 =  ".7";
  82. static char *o_word_len_8 =  ".8";
  83. static char *o_baud =        ".b";
  84. static char *o_even =        ".e";
  85. static char *o_none =        ".n";
  86. static char *o_odd =         ".o";
  87. static char *o_strip_yes =   "+S";
  88. static char *o_strip_no =    "-S";
  89. static char *o_dtr =         ".T";
  90. static char *o_xon_yes =     "+X";
  91. static char *o_xon_no =      "-X";
  92. static char *o_rx_len =      "rx";
  93. static char *o_tx_len =      "tx";
  94.